package com.breakfast.fun.ui.mall.cart;

import com.breakfast.fun.base.BaseModel;
import com.breakfast.fun.base.BasePresenter;
import com.breakfast.fun.base.BaseView;
import com.breakfast.fun.data.entity.user.recharge.PayBean;
import com.breakfast.fun.data.entity.user.recharge.RechargeMoney;
import com.breakfast.fun.data.entity.user.submit.OrderInfo;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by yukai on 16/10/3.
 */

public interface GoodCartContract {
    interface Model extends BaseModel {
        Observable<OrderInfo> getSubmitOrderModel(@FieldMap Map<String, String> map);

        Observable<RechargeMoney> getPayBeanModel(@FieldMap Map<String, String> map);

    }

    interface View extends BaseView {
        void showOrderInfo(PayBean data);
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void getPayBean(String orderNo);

        public abstract void submitOrder(String order);
    }
}
